//
//  DetailsView.h
//  LPlates.app
//
//  Created by Andreas Schwelling on 23.11.07.
//	http://www.andi.de/licenseplates/
//
//  Released under the GNU General Public License.
//  See LICENSE for details.
//
//  Use at your own risk.



#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIView.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTableCell.h>
#import <UIKit/UIPreferencesTextTableCell.h>
#import <UIKit/UIPreferencesControlTableCell.h>
#import <UIKit/UIPreferencesDeleteTableCell.h>
#import <UIKit/UISimpleTableCell.h>
#import <UIKit/UISwitchControl.h>
#import <UIKit/UINavigationItem.h>
#import <UIKit/UITextField.h>


@class MobileVehicleRegPlates;

@interface DetailsView : UIView {
	UINavigationBar *navBar;
	MobileVehicleRegPlates *td;
	id _delegate;
	int citycellAlign;
	NSString *destr,*citycellTitle;
	UIPreferencesTable *table;
}

-(void) loadData:(id)p;
-(id)initWithFrame:(struct CGRect)frame;
-(void)reloadData;

//Delegate Methods
-(void)tableRowSelected:(NSNotification *)notification;

//DataSource Methods
-(int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)table;
-(int)preferencesTable:(UIPreferencesTable *)table numberOfRowsInGroup:(int)group;
-(UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForGroup:(int)group;
-(UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForRow:(int)row inGroup:(int)group;

@end